package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.tenant.AccountDTO;
import com.mrdeer.user.api.entity.Account;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:32
 */
@Mapper
public interface AccountConvert {

    AccountConvert INSTANCE = Mappers.getMapper(AccountConvert.class);

    AccountDTO entity2Dto(Account account);

    Account dto2Entity(AccountDTO accountDTO);
}
